package com.mrdeer.user.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 14:20
 */
@Data
@TableName("tenant_account")
public class TenantAccount implements Serializable {
    private static final long serialVersionUID = 2595877992336498484L;

    @TableId(value = "ID", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 租户ID
     */
    @TableField("TENANT_ID")
    private Long tenantId;

    /**
     * 账号ID
     */
    @TableField("ACCOUNT_ID")
    private Long accountId;

    /**
     * 是否为租户管理员
     */
    @TableField("IS_ADMIN")
    private Boolean isAdmin;
}
